<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<body>
<div id="app">
    <span>{{message}}</span>
</div>


<script src="../js/vue.js"></script>
<script src="../js/axios.js"></script>
<script>
    const vm = new Vue({
        el: "#app",
        data: {
            message: "hello vue",
            title: "fa"
        },
        methods: {
            a: function () {
                this.title = this.isObject()
            }
        },
        created: function () {
            axios.get('http://localhost:8972/test', {
                params: {
                    ID: 8989898
                }
            })
                .then(function (response) {
                    console.log(response);
                }).catch(function (error) {
                console.log(error);
            });
        },
        mounted: function () {
            // 为给定 ID 的 user 创建请求
            axios.get('http://localhost:8972/test?ID=12345')
                .then(function (response) {
                    console.log(response);
                })
                .catch(function (error) {
                    console.log(error);
                });
        }
    })


</script>
</body>
</html>